/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2024-02-24 16:11:07
 * @LastEditTime: 2024-12-12 21:03:38
 * @FilePath: /monitor_belt/src/components/lazy_loader/index.tsx
 */
import React, { Suspense } from 'react'

const LazyLoader = (Comp: React.LazyExoticComponent<() => JSX.Element>) => {
    return (
        <Suspense>
            <Comp />
        </Suspense>
    )
}

export default LazyLoader